<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<!-- template 虚拟标签，不会真正被创建在页面上 -->
			<template v-if="isCreate">
				<div>1111</div>
				<div>222</div>
				<div>3333</div>
			</template>
			<ul>
				<li v-for="(item,index) in dataList">{{item}}</li>
				<!-- ：key=item.id    {{item.name}}-{{item.age}}-->
				<li v-for="(ite,index) in items">{{ite.mesg}}</li>
				<li v-for="(ited,index) in showinfo">{{ited}}</li>
			</ul>
		</div>
		<script>
			var vm=new Vue({
				el:'#app',
			data:{
				isCreate:true,
				dataList:['111','222','333'],
				items:[
					{mesg:'zhang'},
					{mesg:'lisi'},
					{mesg:'zhaolu'}
				],
				showinfo:{
					name:'wangwu',
					age:18,
					locstion:'北海'
				}
			},
			methods:{
				
			}
			})
			
			
		</script>
	</body>
</html>